package com.micro.turtle.util;

import com.micro.turtle.runner.HelpRunner;
import com.micro.turtle.runner.Runner;
import java.util.Set;
import org.reflections.Reflections;

/**
 * @author jason.lv
 * @since 2022/1/21 16:36
 */
public class Initer {

    public static void init() throws Exception {
        Reflections reflections = new Reflections("com.micro.turtle.runner");
        Set<Class<? extends Runner>> runners = reflections.getSubTypesOf(Runner.class);
        for (Class<?> runner : runners) {
            runner.newInstance();
        }
    }
}
